package com.boarsoft.boar.common;

import com.boarsoft.bean.ReplyInfo;

public interface Constants {
	String ERROR_DUPLICATED = "Msg.error.duplicated";
	String ERROR_UNKNOWN = "Msg.error.unknown";
	String ERROR_INTERNAL = "Msg.error.internal";
	String ERROR_NOTFOUND = "Msg.error.notFound";
	String ERROR_UNSUPPORTED = "Msg.error.unsupported";

	String WARN_INVALID = "Msg.warn.invalid";

	String INFO_NOTFOUND = "Msg.info.notFound";
	String INFO_DUPLICATED = "Msg.info.duplicated";
	String INFO_INUSE = "Msg.info.inUse";
	String INFO_NOUSE = "Msg.info.noUse";

	String INFO_LOGIN_FAILED = "Msg.login.failed";
	String INFO_LOGIN_REQUIRED = "Msg.login.required";
	String INFO_LOGON_TIMEOUT = "Msg.login.timeout";
	String INFO_UNAUTHORIZED = "Msg.login.unauthorized";

	ReplyInfo<Object> REPLY_INFO_DUPLICATED = new ReplyInfo<Object>(Constants.INFO_DUPLICATED);
	ReplyInfo<Object> REPLY_INFO_INUSE = new ReplyInfo<Object>(Constants.INFO_INUSE);
	ReplyInfo<Object> REPLY_INFO_NOUSE = new ReplyInfo<Object>(Constants.INFO_NOUSE);
	ReplyInfo<Object> REPLY_INFO_NOTFOUND = new ReplyInfo<Object>(Constants.INFO_NOTFOUND);

	ReplyInfo<Object> REPLY_WARN_INVALID = new ReplyInfo<Object>(Constants.WARN_INVALID);
	
	ReplyInfo<Object> REPLY_ERROR_INTERNAL = new ReplyInfo<Object>(Constants.ERROR_INTERNAL);
	ReplyInfo<Object> REPLY_ERROR_NOTFOUND = new ReplyInfo<Object>(Constants.ERROR_NOTFOUND);
}
